ContextCaptureユーザーガイド

シーンの説明の追加

シーンの名前と説明は、ContextCapture Web Viewerに表示されます。シーンの名前と説明は、どちらもScene/YourProduction.3mxファイルで定義することができます。このファイルをテキストエディタで開き、nameタグとdescriptionタグを置き換えます。

たとえば、「YourProduction」という名前のモデルの既定のルートYourProduction.3mxは次のようになります。

{
"3mxVersion": 1,
"name": " YourProduction",
"description": "Scene generated by ContextCapture, copyright <a href='http://www.bentley.com' target='_blank'>Bentley</a>",
"logo": "logo.png",
"sceneOptions": [{"navigationMode":"PAN"}],
"layers": [
{
"type": "meshPyramid",
"id": "mesh0",
"name": "YourProduction",
"description": "Model generated by ContextCapture, copyright <a href='http://www.bentley.com' target='_blank'>Bentley</a>",
"SRS": "– given SRS –",
"SRSOrigin": [0,0,0],
"root": "Data/YourProduction.3mxb"
}
   ]
}

Webビューアに表示されるメッセージをカスタマイズするには、太字で示されているnameタグとdescriptionタグを変更する必要があります。Webアプリケーションでは、シーンの説明の中のHTMLタグがサポートされます。このタグの例は次のとおりです。

"description":"Scene generated by ContextCapture, &copy;<a href='http://www.bentley.com' target='_blank'>Bentley</a>",

上記のタグは、アプリケーションでは次のように表示されます。

注記: 引用符の使用には注意してください。引用符はタグの終わりを示すので、シーンの説明の内部に使用できません。たとえば、次のコードはエラーになります。
Error:"description":"Scene generated by ContextCapture, copyright <a href="http://www.bentley.com" target="_blank">Bentley</a>"

説明に引用符を使用する必要がある場合は、'または\"を使用します。

OK:"description":"Scene generated by ContextCapture, copyright <a href=\"http://www.bentley.com\" target=\"_blank\">Bentley</a>"